﻿using Miao;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

public class GraphicData
{
    public string texPath;
    //先不定义这个，直接用Graphic
    public Type graphicClass;
    public Color color;
    //public ShaderTypeDef shaderType;//着色器类型定义

    /// <summary>
    /// 运行时图形
    /// </summary>
    public Graphic Graphic
    {
        get;set;
    }
    
    public void Init()//初始化好读取
    {
        Graphic = Activator.CreateInstance(graphicClass) as Graphic;
        Graphic.Init(this);

    }
}

